//event.js 文件
console.log('带参数的事件驱动')
var events = require('events'); 
var emitter = new events.EventEmitter(); 
//绑定两个some_event监视器,触发some_event事件时,两个回调函数都会执行
emitter.on('someEvent', function(arg1, arg2) { 
	console.log('listener1', arg1, arg2); 
}); 
emitter.on('someEvent', function(arg1, arg2) { 
	console.log('listener2', arg1, arg2); 
}); 
emitter.emit('someEvent', 'qiu', 'quanwu'); 